﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 创建者模式
{
    public class Fruit
    {
        public  string name { get; set; }
        public Fruit(string name) { this.name = name; }

        public virtual void Show() {
            Console.WriteLine($"{name}");
        }
    }
}
